package com.yenlien.traceyun.business.entity;

import com.yenlien.traceyun.webase.entity.BaseIdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedEntityGraph;
import java.math.BigDecimal;

/**
 * @author: bigwangy@sina.com
 * @create: 2020-12-08
 * @description:
 **/
@Entity(name = "t_invoice")
public class Invoice extends BaseIdEntity {

    /**
     * 发票类型 1:普票，2专票
     */
    @Column(name = "type", length = 10)
    private String type;

    /**
     * 发票抬头
     */
    @Column(name = "invoice_rise", length = 50)
    private String invoiceRise;

    /**
     * 发票识别号
     */
    @Column(name = "invoice_code", length = 50)
    private String invoiceCode;

    /**
     * 发票联系人
     */
    @Column(name = "invoice_phone", length = 13)
    private String invoicePhone;

    /**
     * 发票地址
     */
    @Column(name = "invoice_address", length = 80)
    private String invoiceAddress;

    /**
     * 发票开户名称
     */
    @Column(name = "invoice_name", length = 50)
    private String invoiceName;

    /**
     * 发票开户银行
     */
    @Column(name = "invoice_bank", length = 50)
    private String invoiceBank;

    /**
     * 发票开户银行账户
     */
    @Column(name = "invoice_bank_code", length = 50)
    private String invoiceBankCode;

    @Column(name = "cash", length = 11)
    private BigDecimal cash;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getInvoiceRise() {
        return invoiceRise;
    }

    public void setInvoiceRise(String invoiceRise) {
        this.invoiceRise = invoiceRise;
    }

    public String getInvoiceCode() {
        return invoiceCode;
    }

    public void setInvoiceCode(String invoiceCode) {
        this.invoiceCode = invoiceCode;
    }

    public String getInvoicePhone() {
        return invoicePhone;
    }

    public void setInvoicePhone(String invoicePhone) {
        this.invoicePhone = invoicePhone;
    }

    public String getInvoiceAddress() {
        return invoiceAddress;
    }

    public void setInvoiceAddress(String invoiceAddress) {
        this.invoiceAddress = invoiceAddress;
    }

    public String getInvoiceName() {
        return invoiceName;
    }

    public void setInvoiceName(String invoiceName) {
        this.invoiceName = invoiceName;
    }

    public String getInvoiceBank() {
        return invoiceBank;
    }

    public void setInvoiceBank(String invoiceBank) {
        this.invoiceBank = invoiceBank;
    }

    public String getInvoiceBankCode() {
        return invoiceBankCode;
    }

    public void setInvoiceBankCode(String invoiceBankCode) {
        this.invoiceBankCode = invoiceBankCode;
    }

    public BigDecimal getCash() {
        return cash;
    }

    public void setCash(BigDecimal cash) {
        this.cash = cash;
    }
}
